<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>user</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="index.js"></script>
</head>
<body>
<h id="main"></h>
<div id="regTempl" style="display: block">
    <form>
        name:<br>
        <input name="name" type="text"><br>
        password:<br>
        <input name="password" type="text"><br>
        comfimPassword<br>
        <input name="comfimpassword" type="text"><br>
        age:<br>
        <input name="age" type="number"><br>
        <input type="submit" value="register" id="regButton">
    </form>
</div>

<div id="loginTempl" style="display: none">
    <form>
        name:<br>
        <input name="name" type="text"><br>
        password:<br>
        <input name="password" type="text"><br>
        <input type="submit" value="login" id="loginButton">
    </form>
</div>
</body>
</html>